package com.wpp;

import org.junit.Test;

import java.io.File;

public class FileIOTest {


    public void test(){

        File file = new File("F:\\Java测试源代码\\day10-IO流\\hello.txt");
        boolean file1 = file.isFile();
        System.out.println(file1);


    }

    /**
    *用于测试:
    *
    */
    @Test
    public void test2(){
        File file = new File("F:\\Java测试源代码\\day10-IO流\\hello.txt");
        boolean file1 = file.isFile();
        boolean directory = file.isDirectory();
        System.out.println(directory);
        System.out.println(file1);
        File file2 = new File("F:\\Java测试源代码\\day10-IO流");
        File[] files = file2.listFiles();
        for (File file3 : files) {
            System.out.println(file3);
        }
        System.out.println(files);

    }
}
